package cn.itsource.org.service.impl;

import cn.itsource.basic.service.impl.BaseServiceImpl;
import cn.itsource.basic.util.PageBean;
import cn.itsource.org.domin.Dept;
import cn.itsource.org.mapper.DeptMapper;
import cn.itsource.org.query.DeptQuery;
import cn.itsource.org.service.IDeptService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)//默认required
public class DeptmentServiceImpl extends BaseServiceImpl<Dept> implements IDeptService {

    @Autowired
    DeptMapper mapper;


    @Override
    public List<Dept> findByParentId(Long pid) {
        return   mapper.findByParentId(pid);
    }
}
